package com.zry.study.config

import android.os.Environment
import com.tsy.sdk.myokhttp.MyOkHttp
import com.zry.retorfit.config.RetrofitApplication
import java.io.File



class MyApplication : RetrofitApplication() {
	
	
	/**
	 * 文件保存路径
	 */
	var apkSavePath = Environment.getExternalStorageDirectory().absolutePath + "/kangyineng/"
	
	var myOkHttp: MyOkHttp= MyOkHttp()
	
	companion object {
		lateinit var instance: MyApplication
			private set
	}
	
	override fun onCreate() {
		super.onCreate()
		
		val mPhotoFile = File(photoSavePath)
		if (!mPhotoFile.exists()) {
			mPhotoFile.mkdirs()
		}
	}
}
